package com.skt.manage.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.skt.common.annotation.Excel;
import com.skt.common.core.domain.BaseEntity;

/**
 * 患者列表对象 patients
 * 
 * @author ffbaby
 * @date 2025-03-11
 */
public class Patients extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** ID */
    private Long patientId;

    /** 关联到Users表的 */
    private Long userId;

    /** 患者姓名 */
    @Excel(name = "患者姓名")
    private String name;

    /** 性别 */
    @Excel(name = "性别")
    private String gender;

    /** 居住地址 */
    @Excel(name = "居住地址")
    private String address;

    /** 出生日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "出生日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date dateOfBirth;

    /** 身份证 */
    @Excel(name = "身份证")
    private String nationalId;

    /** 联系电话 */
    @Excel(name = "联系电话")
    private String phoneNumber;

    /** 病史 */
    @Excel(name = "病史")
    private String medicalHistory;

    /** 上次就诊日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "上次就诊日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date lastVisitDate;

    /** 记录创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "记录创建时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date createdAt;

    /** 记录最后更新时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "记录最后更新时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date updatedAt;

    public void setPatientId(Long patientId) 
    {
        this.patientId = patientId;
    }

    public Long getPatientId() 
    {
        return patientId;
    }
    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }
    public void setName(String name) 
    {
        this.name = name;
    }

    public String getName() 
    {
        return name;
    }
    public void setGender(String gender) 
    {
        this.gender = gender;
    }

    public String getGender() 
    {
        return gender;
    }
    public void setAddress(String address) 
    {
        this.address = address;
    }

    public String getAddress() 
    {
        return address;
    }
    public void setDateOfBirth(Date dateOfBirth) 
    {
        this.dateOfBirth = dateOfBirth;
    }

    public Date getDateOfBirth() 
    {
        return dateOfBirth;
    }
    public void setNationalId(String nationalId) 
    {
        this.nationalId = nationalId;
    }

    public String getNationalId() 
    {
        return nationalId;
    }
    public void setPhoneNumber(String phoneNumber) 
    {
        this.phoneNumber = phoneNumber;
    }

    public String getPhoneNumber() 
    {
        return phoneNumber;
    }
    public void setMedicalHistory(String medicalHistory) 
    {
        this.medicalHistory = medicalHistory;
    }

    public String getMedicalHistory() 
    {
        return medicalHistory;
    }
    public void setLastVisitDate(Date lastVisitDate) 
    {
        this.lastVisitDate = lastVisitDate;
    }

    public Date getLastVisitDate() 
    {
        return lastVisitDate;
    }
    public void setCreatedAt(Date createdAt) 
    {
        this.createdAt = createdAt;
    }

    public Date getCreatedAt() 
    {
        return createdAt;
    }
    public void setUpdatedAt(Date updatedAt) 
    {
        this.updatedAt = updatedAt;
    }

    public Date getUpdatedAt() 
    {
        return updatedAt;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("patientId", getPatientId())
            .append("userId", getUserId())
            .append("name", getName())
            .append("gender", getGender())
            .append("address", getAddress())
            .append("dateOfBirth", getDateOfBirth())
            .append("nationalId", getNationalId())
            .append("phoneNumber", getPhoneNumber())
            .append("medicalHistory", getMedicalHistory())
            .append("lastVisitDate", getLastVisitDate())
            .append("createdAt", getCreatedAt())
            .append("updatedAt", getUpdatedAt())
            .toString();
    }
}
